package com.iplant.ams.service.po.dms.scada.alarm;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.iplant.base.utils.general.CalendarTool;

import java.util.Calendar;

public class DMSDeviceAlarmStatistics {
    /**
    /// 设备ID
    */
    public int DeviceID = 0;

    /**
    /// 采集编码
    */
    public String AssetNo = "";

    /**
    /// 报警时间
    */
    public Calendar AlarmTime = CalendarTool.getBasicDate();

    /**
    ///  报警时长
    */
    public double AlarmDuration = 0.0;

    /**
    /// 报警次数
    */
    public int AlarmCount = 0;

    @JsonProperty("DeviceID")
    public int getDeviceID() {
        return DeviceID;
    }

    public void setDeviceID(int deviceID) {
        DeviceID = deviceID;
    }

    @JsonProperty("AssetNo")
    public String getAssetNo() {
        return AssetNo;
    }

    public void setAssetNo(String assetNo) {
        AssetNo = assetNo;
    }

    @JsonProperty("AlarmTime")
    public Calendar getAlarmTime() {
        return AlarmTime;
    }

    public void setAlarmTime(Calendar alarmTime) {
        AlarmTime = alarmTime;
    }

    @JsonProperty("AlarmDuration")
    public double getAlarmDuration() {
        return AlarmDuration;
    }

    public void setAlarmDuration(double alarmDuration) {
        AlarmDuration = alarmDuration;
    }

    @JsonProperty("AlarmCount")
    public int getAlarmCount() {
        return AlarmCount;
    }

    public void setAlarmCount(int alarmCount) {
        AlarmCount = alarmCount;
    }
}
